<template>
    <div class='box'>
        <h1>{{count}}{{qqq}}</h1>
        <button @click='change(1)'>++++</button>
        <button  @click='change(-1)'>----</button>
    </div>
</template>
<script>
// @ is an alias to /src
export default {
    name: 'myh1',
    props:['qqq'],
    data() {
        return {
          count:100,
          myqqq:''
        }
    },
    created() {
      this.myqqq = this.qqq;
      console.log(this)
    },
    methods: {
      change(n){
        this.count += n;
        this.qqq = '珠峰培训'
        // this.$emit('myfn',"珠峰培训",1,2,3,4)
      }
    },
    components: {
        
    }
}
</script>
<style lang="less" scoped>
  .box{
    color:blue
  }
</style>